home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 001-025 / scopedisk4 / patch / makefile < prev    next >
Makefile  |  1995-03-18  |  2KB  |  80 lines

  1. # $Header: Makefile.SH,v 2.0 86/09/17 15:36:15 lwall Exp $
  2. #
  3. # $Log:    Makefile.SH,v $
  4. # Revision 2.0  86/09/17  15:36:15  lwall
  5. # Baseline for netwide release.
  6. # Revision 1.2  86/09/08  14:07:42  lwall
  7. # Split up patch.c.
  8. # Revision 1.1  86/08/01  20:18:35  lwall
  9. # Initial revision
  10.  
  11. CC = cc
  12. bin = /usr/local/bin
  13. mansrc = /usr/man/mann
  14. manext = n
  15. CFLAGS =-b -r
  16. LDFLAGS = 
  17.  
  18. public = patch
  19. private = 
  20. manpages = patch.man
  21. util = Makefile
  22.  
  23. c = patch.c pch.c inp.c version.c util.c request.c filereq.c newwildcmp.c \
  24.  dfindOne.c
  25.  
  26. obj = patch.o pch.o inp.o util.o version.o request.o filereq.o newwildcmp.o \
  27.  dfindOne.o
  28.  
  29. lintflags = -phbvxac
  30.  
  31. addedbyconf = Makefile.old bsd config.h config.sh eunice loc pdp11 usg v7
  32.  
  33. # grrr
  34. SHELL = /bin/sh
  35.  
  36. #.c.o:
  37. #    $(CC) -c $(CFLAGS) $*.c
  38.  
  39. #all: $(public) $(private) $(util)
  40. #    touch all
  41.  
  42. patch: $(obj)
  43.     $(CC) $(LDFLAGS) $(obj) $(libs) -o patch
  44.  
  45. # won't work with csh
  46. #install: patch
  47. #    export PATH || exit 1
  48. #    - mv $(bin)/patch $(bin)/patch.old
  49. #    - if test `pwd` != $(bin); then cp $(public) $(bin); fi
  50. #    cd $(bin); chmod 755 $(public)
  51. #    - if test `pwd` != $(mansrc); then \
  52. #for page in $(manpages); do \
  53. #cp $$page $(mansrc)/`basename $$page .man`.$(manext); \
  54. #done; \
  55. #fi
  56.  
  57. clean:
  58.     rm -f *.o *.orig core
  59.  
  60. realclean:
  61.     rm -f patch *.o *.orig core $(addedbyconf)
  62.  
  63. # The following lint has practically everything turned on.  Unfortunately,
  64. # you have to wade through a lot of mumbo jumbo that can't be suppressed.
  65. # If the source file has a /*NOSTRICT*/ somewhere, ignore the lint message
  66. # for that spot.
  67.  
  68. lint:
  69.     lint $(lintflags) $(defs) $(c) > patch.fuzz
  70.  
  71. patch.o: config.h common.h patch.c inp.h pch.h util.h version.h
  72. pch.o: config.h common.h pch.c pch.h util.h
  73. inp.o: config.h common.h inp.c inp.h util.h
  74. util.o: config.h common.h util.c util.h
  75. version.o: config.h common.h version.c version.h patchlevel.h util.h
  76.  
  77.